package com.laboratory.serviceprovide.workBench.mapper;

import com.Laboratory.utilPojo.equipmentWithRoomNo;
import com.Laboratory.workBench.pojo.equipment;
import com.Laboratory.workBench.pojo.equipmentRepair;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface equipmentMapper {
    List<equipment> getEquipmentListByPage(Map<String,Object> map);
    int getEquipmentRowsByPage(String roomNo);
    List<equipmentRepair> getEquipmentRepair();
    String getEquipmentIdByNoAndRoom(@Param("equipmentNo") String equipmentNo,
                                     @Param("roomId") String roomId,
                                     @Param("equipmentName") String equipmentName);
    int insertEquipmentRepairRecord(Map<String, Object>map);
    int updateEquipmentState(String equipmentId);
    int deleteRepairRecordByIds(String []ids);
    int updateEquipmentStateByIds(String []ids);
    List<equipmentWithRoomNo> getEquipmentByCondition(Map<String,Object> map);
    int getEquipmentRowsByCondition(Map<String,Object> map);
    int insertEquipment(equipment equipment);
    List<String> getEquipmentNoArray(String roomId);
    int updateEquipmentById(equipment equipment);
    int deleteEquipmentByIds(String []ids);
    int updateEquipmentStateByOverTime(String nowTime);
}